<?php 
/*******************************数据处理****************************************/
//获取公司介绍的信息
if (isset($companyList)) {
  $companyName = $companyList->getItem('name')->getValue();
  $companyDescription = $companyList->getItem('description')->getValue();
  $companyImage = Yii::app()->request->baseUrl . $companyList->getItem('image')->getValue();
}
/*****************************结束数据处理**************************************/
//提供返回按钮所需的参数
$backData = array('cooker' => 'BWCompanyInfo@ShowHome');
echo $control->renderView("header",array('backData' => $backData, 'title' => '关于涵信'));//第一个参数是调整的页面名字

if (isset($companyList)) {
?>
<!--******************** News Section ********************-->
  <section id="portfolio" class="single-page scrollblock">
      <div class="container">
        <div class="row">
          <div class="span4">
            <div class="mask2"> <a href="#" rel="prettyPhoto"><img src="<?php echo $companyImage;?>" alt=""></a> </div>
            <div class="inside">
              <hgroup>
                <h2><?php echo $companyName?>：</h2>
              </hgroup>
              <div class="entry-content">
                <p><?php echo $companyDescription;?></p> </div>
            </div>
            <!-- /.inside -->
          </div>
          <!-- /.span4 -->
        </div>
        <!-- /.row -->
      </div>
      <!-- /.container -->
    </section>
<?php } ?>
    <!--******************** News Section ********************-->
    <section id="news" class="single-page scrollblock">
      <div class="container">
        <!-- Three columns -->
        <div class="row">
            <?php 
            foreach ($teamListArr as $teamList) {
                $teamName = $teamList->getItem('name')->getValue();
                $teamDescription = $teamList->getItem('description')->getValue();
                $teamImage = Yii::app()->request->baseUrl . $teamList->getItem('image')->getValue();
                ?>
                <article class="span4 post"> <img class="img-news" src="<?php echo $teamImage;?>" alt="">
                    <div class="inside">
                      <h2><?php echo $teamName;?></h2>
                      <div class="entry-content">
                        <p><?php echo $teamDescription;?></p>
                        </div>
                    </div>
                    <!-- /.inside -->
                </article>
                <!-- /.span4 -->
            <?php } ?>
        </div>
        <!-- /.row -->
        </div>
      <!-- /.container -->
    </section>
<?php 
echo $control->renderView("footer");
?>